import re

import requests

url = 'https://car.autohome.com.cn/pic/series/6473.html'
res = requests.get(url)
res = res.text
imgs = re.findall('<img src="(.*?)" alt="2022款 基本型" title="2022款 基本型"/>', res)
# print(imgs)
i = 1
for img in imgs:
    url = 'https:' + img
    img_res = requests.get(url)
    with open(f'../datas/跑车/{i}.jpg', 'wb') as f:
        f.write(img_res.content)
    i += 1
